package conf2.text;

import conf2.model.ETerritory;

public class Regions {

    public static String getMapName(ETerritory et) {
        switch (et) {
            case ARTHEDAIN:
                return "Arthedain";
            case CARDOLAN:
                return "Cardolan";
            case DAGORLAD:
                return "Dagorlad";
            case ENEDWAITH:
                return "Enedwaith";
            case EREGION:
                return "Eregion";
            case FANGORN:
                return "Fangorn";
            case GAPOFROHAN:
                return "Gap of Rohan";
            case GONDOR:
                return "Gondor";
            case HIGHPASS:
                return "The High Pass";
            case MIRKWOOD:
                return "Mirkwood";
            case MISTYMTS:
                return "Misty Mts.";
            case MORDOR:
                return "Mordor";
            case MORIA:
                return "Moria";
            case RHUDAUR:
                return "Rhudaur";
            case ROHAN:
                return "Rohan";
            case SHIRE:
                return "The Shire";
            default:
                throw new RuntimeException("Unknown region: " + et);
        }
    }

    public static String getName(ETerritory et) {
        if (et == ETerritory.MISTYMTS) {
            return "Misty Mountains";
        } else {
            return getMapName(et);
        }
    }
}
